import request from './request'

//获取我发布的商品
const productbyownApi = (data) => {
    return request.get({
        url: '/product/productbyown',
        data
    })
}

//获取地址列表
const AddressListApi = (data) => {
    return request.get({
        url: '/address/addressinfo',
        data
    })
}

//获取用户信息
const getuserInfoApi = (data) => {
    return request.get({
        url: '/mine/userinfo',
        data
    })
}

//修改用户密码
const changePwdApi = (data) => {
    return request.post({
        url: '/mine/updatepwd',
        data
    })
}
//添加收货地址
const upaddressApi = (data) => {
    return request.post({
        url: '/address/upaddress',
        data
    })
}
//获取自己发布的动态信息
const getDynamicInfo = (data) => {
    return request.get({
        url: '/mine/getDynamicInfoByown',
        data
    })
}
//发布动态
const releaseDynamic = (data) => {
    return request.post({
        url: '/mine/releaseDynamic',
        data
    })
}
//获取发布的动态信息列表
const getDynamicInfoList = (data) => {
    return request.get({
        url: '/mine/getDynamicInfoList',
        data
    })
}
//标记商品失效
const failureTage = (data) => {
    return request.post({
        url: '/product/failureTage',
        data
    })
}
//获取失效的商品
const getfailureTage = (data) => {
    return request.get({
        url: '/product/getfailureTage',
        data
    })
}
export default {
    productbyownApi,
    AddressListApi,
    getuserInfoApi,
    changePwdApi,
    upaddressApi,
    getDynamicInfo,
    releaseDynamic,
    getDynamicInfoList,
    failureTage,
    getfailureTage
}